<?php
namespace app\index\controller;
use think\Controller;

class Index extends Base{
    public function _initialize() {
        parent::_initialize();

    }

    public function index(){
        $featuredModle = model('Featured');
        $featured0 = $featuredModle->getFeaturedsByType('0');
        $featured1 = $featuredModle->getFeaturedsByType('1');
        $featured2 = $featuredModle->getFeaturedsByType('2');
        return $this->fetch('',[
            'featured0' => $featured0,
            'featured1' => $featured1,
            'featured2' => $featured2,
        ]);
    }
}
